package com.base.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.base.po.sqlparam.RegisterinfoesExamplePage;
import com.base.po.voip.Registerinfoes;
import com.base.po.voip.RegisterinfoesExample;
import com.base.utils.Page;

public interface RegisterinfoesService {
	int countByExample(RegisterinfoesExample example);

	int deleteByExample(RegisterinfoesExample example);

	int deleteByPrimaryKey(String id);

	int insert(String mobile, String registerip, String address, String parentid, String mobileaddress,
               Boolean datastatus);

	int insertSelective(Registerinfoes record);

	List<Registerinfoes> selectByExample(RegisterinfoesExample example);

	List<Registerinfoes> selectByExamplePage(RegisterinfoesExamplePage example);
	
	List<Registerinfoes> selectByParentid(@Param("page") Page page,
                                          @Param("parentid") String parentid, @Param("mobile") String mobile,
                                          @Param("dateFrom") String dateFrom, @Param("dateTo") String dateTo);

	Registerinfoes selectByPrimaryKey(String id);

	int updateByExampleSelective(@Param("record") Registerinfoes record,
                                 @Param("example") RegisterinfoesExample example);

	int updateByExample(@Param("record") Registerinfoes record, @Param("example") RegisterinfoesExample example);

	int updateByPrimaryKeySelective(Registerinfoes record);

	int updateByPrimaryKey(Registerinfoes record);
	
	int countByParentid(@Param("parentid") String parentid, @Param("mobile") String mobile,
                        @Param("dateFrom") String dateFrom, @Param("dateTo") String dateTo);
}
